package com.lvmama.rhino.service.impl;

import com.lvmama.rhino.mapper.ProductDetailMapper;
import com.lvmama.rhino.pojo.ProductDetail;
import com.lvmama.rhino.service.ProductDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("productDetailService")
public class ProductDetailServiceImpl implements ProductDetailService{

	@Autowired
	private ProductDetailMapper productDetailMapper;


	/**
	 * 柱状图
	 * @param sc
	 * @return
	 */
	public List<ProductDetail> getChartList(ProductDetail sc){
		return productDetailMapper.getChartList(sc);
	};

	/**
	 *
	 * @param
	 * @return
	 */
	@Override
	public List<ProductDetail> getTableList(ProductDetail p) {
		return productDetailMapper.getTableList(p);
	}
}
